import { DbService } from './services/db.service';

import { Module, Global } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';

import { LoginSchema } from './schemas/login.schme';
import { LoginController } from './login.controller';
import { LoginService } from './services/login.service';



@Global()
@Module({
  imports: [MongooseModule.forFeature([{ name: 'user', schema: LoginSchema }])],
  controllers: [LoginController],
  providers: [LoginService,DbService],
  exports:[DbService]
})
export class LoginModule {}